
#ifndef CREATELAYERDIALOG_H
#define CREATELAYERDIALOG_H

#include <BLineEdit>
#include <BComboBox>
#include <BSpinBox>
#include <BButton>
#include <BDialog>

using namespace BWE;

class CreateLayerDialog : public BDialog
{
public:
	CreateLayerDialog(BWidget* parent = 0);
	~CreateLayerDialog();

	void setNameList(const BStringList& nameList);
	const BStringList& nameList() const;

protected:
	void slotNameEdited(BObject* object, const BValue& value);
	void slotFormatChanged(BObject* object, const BValue& value);
	void slotSizeSpinBoxChanged(BObject* object, const BValue& value);
	void slotChooseOriginColor(BObject* object, const BValue& value);
	void slotCreateButtonClicked(BObject* object, const BValue& value);

protected:
	virtual void showEvent(const BEvent& event);

private:
	BLineEdit*			_nameEdit;
	BComboBox*		_formatComboBox;
	BSpinBox*		_widthSpinBox;
	BSpinBox*		_heightSpinBox;
	BButton*		_colorButton;

	BStringList		_namelst;
	BButton*		_createButton;
};

#endif
